package cn.gson.fengboot.model.mapper;

import cn.gson.fengboot.model.pojos.TfyclueForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TfyclueMapper {
    //线索对客户多对一、模糊查询
    public List<TfyclueForm> findAllClue(@Param("search") String search);

    //已失效线索对客户多对一、模糊查询
    public List<TfyclueForm> findAllCluezt(@Param("search") String search);

    //分配给我的线索查询
    public List<TfyclueForm> findClueClient(@Param("search") String search);

    //根据客户id查询对应线索方法
//    public List<TfyclueForm> findAllxskh(@Param("id") Integer id);

    //根据线索id查询对应线索和客户方法
    public TfyclueForm findXskh(@Param("clueId") Integer clueId);

}
